package mamikeji.liaowa.widget.refreshView;

import android.content.Context;
import android.util.AttributeSet;

import in.srain.cube.views.ptr.PtrFrameLayout;

/**
 * Created by 廉冲-android开发 on 2017/7/15.
 */
public class PtrlDownRefreshFrameLayout extends PtrFrameLayout {
    public PtrlDownRefreshFrameLayout(Context context) {
        super(context);
        init();
    }

    public PtrlDownRefreshFrameLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public PtrlDownRefreshFrameLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init();
    }

    private void init() {
        PtrRefreshHeader mHeaderView = new PtrRefreshHeader(getContext());
        setHeaderView(mHeaderView);
        addPtrUIHandler(mHeaderView);
    }
}
